import request from '@/utils/request'

const api_name = '/product/spuinfo/'

export default {
    getDataList(data) {
        return request({
            url: `${api_name}/page`,
            method: 'get',
            params: data
        })
    },
    createSpu(spu) {
        return request({
            url: `${api_name}/create`,
            method: 'post', 
            data: spu
        })
    },
}